package com.bobo.web.provider.controller.web;

import com.bobo.web.provider.client.dingding.DingDingWarnClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@Controller
    @RequestMapping("web/knowledge/spring")
public class KnowledgeController {
    private static Logger LOGGER = LoggerFactory.getLogger(KnowledgeController.class);
    @Resource
    private DingDingWarnClient dingDingWarnClient;

    /**
     * 获取图片列表3D
     *
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "/springCloud", method = {RequestMethod.GET})
    public String resume(Model model) throws Exception {
        LOGGER.info("获取springCloud信息");
        dingDingWarnClient.sendAssignStudentReport("有人正在访问");
        return "springCloud";
    }
}
